/*
 * BankTest.java
 *
 * Created on September 16, 2008, 8:53 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
import java.util.Scanner;

public class BankTest {
    
public static void main(String[] args ){

  
    int option ;
    Bank bank = new Bank();
    Scanner in = new Scanner(System.in);
 try{
   do{   
    System.out.println("\n\n1.Tao tai khoan moi ");
    System.out.println("2.Rut tien ");
    System.out.println("3.Gui tien ");
    System.out.println("4.Xem thong tin tai khoan");
    System.out.println("5.Thoat ");
    
    option = in.nextInt();
    
    switch(option){
        case 1 : bank.creatAccount(); break;
        case 2 : bank.withdraw() ; break;
        case 3 : bank.deposit() ; break;
        case 4 : bank.display() ; break;
    }
    
  }
  while(option > 0 && option < 5);
 
  }catch(Exception e){
     System.out.println("Loi nhap so.");
     
   }
}

}
    

